<div class="interestsLeft">
	<b>Interested</b>
	<ul>
	{foreach from=$portfolio->interests key=key item=interest}
		<li>{$interest->name}</li>
	{/foreach}
	</ul>
</div>

<div class="interestsRight">
	<b>Uninterested</b>
	<ul>
	{foreach from=$portfolio->disinterests key=key item=interest}
		<li>{$interest->name}</li>
	{/foreach}
	</ul>
</div>

<div class="clear"></div>


{if $portfolio->user_id == $currentUserID}
	<div>
		{form remote='true'}
			{hidden name="id" value=$portfolio->id}
			{hidden name="ajaxAction" value=$params.ajaxAction}
			{hidden name="element" value="interests"}
	
			{if $params.ajaxAction == "edit"}
				<br />
				{submit value="Edit"}
			{else}
				<br />
				{interests_inputs portfolio_id=$portfolio->id}
				{submit value="Save"}
			{/if}
		{/form}
	</div>
{/if}

